import request from '@/utils/request'
//所有的课程列表接口

//列表查询
export function _getCourseList(data){
    return request(
        '/VueHandler/CourseHandler?action=show',
        'post',
        data
    )
}
//课程删除
export function _delCourese(_id){
    return request(
        '/VueHandler/CourseHandler?action=delete','post',{
            _id:_id
        }
    )
}
//置顶和取消指定
export function _toTop(ID){
    return request(
        '/VueHandler/CourseHandler?action=top',
        'post',
        {
            ID:ID
        }
    )
}
//上架、下架
export function _toShelf(ID){
    return request(
        '/VueHandler/CourseHandler?action=state',
        'post',
        {
            ID:ID
        }
    )
}